/************************************************************************************************************
**	Project: Dreamgineer Arduino Libraries
**
**	BlinkM.h - Arduino BlinkM Library
**
**	Written By: 	Sam Kristoff
**  Written On: 	June 2012
**  Last Updated: 	June 2012
**
**	Provides BlinkM Functions For Use With Arduino
**
************************************************************************************************************/

#ifndef BLINKM_H_	// Prevent This File From Being Double Included
#define BLINKM_H_

class BlinkM
{
	private:
	unsigned char Address;		// Stores The BlinkM I2C Address

	protected:

	public:
	/********************************************************************************************************
	**-------------------------------------------- Constructors --------------------------------------------
	********************************************************************************************************/

	/********************************************************************************************************
	**	BlinkM() - Main Constructor For BlinkM
	**
	**	Parameters - address - The I2C Address Of The BlinkM
	**
	**	Return - None
	********************************************************************************************************/
	BlinkM(unsigned char address);

	/********************************************************************************************************
	**----------------------------------------------- Methods -----------------------------------------------
	********************************************************************************************************/

	/********************************************************************************************************
	**	gotoRGB() - Go To RGB Color Now Command
	**
	**	Parameters - r - The Red Value For The BlinkM (0-255)
	**               g - The Green Value For The BlinkM (0-255)
	**               b - The Blue Value For The BlinkM (0-255)
	**
	**	Return - None
	********************************************************************************************************/
	void gotoRGB(unsigned char r, unsigned char g, unsigned char b);

};

#endif /* BLINKM_H_ */


/************************************************************************************************************
**	Copyright (c) Dreamgineer.org
**
**	Permission to use, copy, modify, and distribute this software for any purpose with or without fee is
**	hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
**
**	THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
**	INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
**	FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
**	OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
**	OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
************************************************************************************************************/
